package com.springcloud.atguigu.service;

import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
     @RequestMapping(value = "/payment/get/{id}")
     CommonResult get(@PathVariable("id") Long  id);


     @RequestMapping(value = "/payment/feign/timeout")
      String paymentFeignTimeOut();
}
